package com.aaa.service;

import com.aaa.entity.ContractLease;
import com.aaa.entity.Result;
import com.aaa.query.ContractQuery;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author auto
 * @since 2021-01-25
 */
public interface IContractLeaseService extends IService<ContractLease> {

   /**
    * 自有资产租出合同
    */

   Result listAllPrivate();

   Result addLeasePrivate(ContractLease contract);

   Result LeasePrivateQuery(ContractQuery query);


   /**
    *  公有资产租出合同
    */

   Result listAllPublic();

   Result addLeasePublic(ContractLease contract);

   Result LeasePublicQuery(ContractQuery query);


   /**
    *  其他资产租出合同
    */

   Result listAllElse();

   Result addLeaseElse(ContractLease contract);

   Result LeaseElseQuery(ContractQuery query);


   /**
    *    修改
    * @param contract
    */

   Result updateLease(ContractLease contract);


}
